package com.example.springboot_test.design_mode.proxy.state;

public class StateComponent {
    AbstractState state;
    AbstractState nonState;

    int count = 0;

    public StateComponent(int count) {
        state = new State();
        nonState = new NonState();
        this.count = count;
    }

    void paint() {
        state.paint();
    }

    void nonPaint() {
        nonState.paint();
    }
}
